package red.mapper;

import org.apache.ibatis.annotations.Param;
import red.model.ArticleModel;
import red.model.ColumnModel;
import red.model.UserModel;

import java.util.List;

public interface Pagemapper {

    int getTotal(@Param("name") int name);

    List getUserList();

    int getUserposts(@Param("userName") String userName);

    List<UserModel> getPageUser(@Param("count") int count, @Param("start") int start);

    List getColumnList();

    int getColumnposts(@Param("Name") String Name);

    List<ColumnModel> getPageColumn(@Param("count") int count, @Param("start") int start);

    List getArticList();

    List<ArticleModel> getPageArtic(@Param("count") int count, @Param("start") int start);

}
